package com.servlet.yanglaoyuan.service;

import com.servlet.yanglaoyuan.pojo.Medication_Record;
import com.servlet.yanglaoyuan.pojo.dataFilter;

import java.time.LocalDateTime;
import java.util.List;

public interface Medication_RecordService {
    //添加一条用药记录
    public void add(Medication_Record medication_record);
    //更新一条用药记录
    public void updateRecord(Medication_Record medication_record);
    //通过名称查询用药记录
    public List<Medication_Record> getByName(String medicationName);
    //通过状态查询用药记录
    public List<Medication_Record> getByStatus(String status);
    //通过时间查询用药记录
    public List<Medication_Record> getByDate(LocalDateTime startDate, LocalDateTime endDate);
    //删除一条用药记录
    public void deleteRecord(Integer id);
    //获取所有用药记录
    public List<Medication_Record> getAll();
    //通过老人Id获取用药记录
    public List<Medication_Record> getByElderlyId(Integer elderlyId);
    //筛选用药记录
    public List<Medication_Record> getRecord(dataFilter record);
}
